package ooday05;

public class StaticFinalDemo {
    public static void main(String[] args) {
        System.out.println(Loo.PI);
        System.out.println(Loo.A);
        System.out.println(Loo.B);//1.加载Loo.class到方法区中2.静态变量num一并存储到方法区中3.到方法区中获取num的值并输出

    }
}

class Loo{
    public static final double PI=3.1415926;
    //public static final double A;编译错误，常量必须声明同时初始化

    public static final double A=5.66;
    public static double B = 5.66;
}